package cn.cdzy.relation.d4_implemention;

public class Mouse implements USB{
    private  String name;
    @Override
    public void connect() {
        System.out.println(name + "鼠标链接设备了~~~");
    }
    public void click(){
        System.out.println(name + "鼠标点击了~~~·");
    }

    public Mouse(String name) {
        this.name = name;
    }

    //1、构造函数（方法） 2、Getter Setter方法
    //右键 生程
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
